package cn.onecloud.examples;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author Keijack
 *
 */
public class AddStudentForm {

    @NotNull(message = "姓名不能为空")
    @Size(min = 5, max = 20, message = "姓名长度必须为{1}~{2}")
    private String name;

    public String getName() {
	return name;
    }

    public void setName(String name) {
	this.name = name;
    }

}
